package com.lxy.bean;


import com.lxy.common.group.ISave;
import com.lxy.common.group.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel("客户")
public class Customer {

    @ApiModelProperty("修改时id不能为空")
    @NotEmpty(message = "修改id时不能为空",groups = IUpdate.class)
    int id;

    @ApiModelProperty(value = "客户名称",required = true)
    @NotEmpty(message = "客户名称不能为空" ,groups = {ISave.class, IUpdate.class})
    String username;

    @ApiModelProperty(value = "手机号")
    String mobile;


    @ApiModelProperty(value = "性别")
    String sex;
}
